package com.xusiyan08.dto;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class MessageDto {
    private Long messageId;
    private Long senderId;
    private Long receiverId;
    private Long itemId; // 可选
    private String content;
    private Boolean isRead;
    private LocalDateTime createdAt;
    private String senderNickname;

    // Getters and Setters for new fields, Lombok's @Data handles the rest
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getSenderNickname() {
        return senderNickname;
    }

    public void setSenderNickname(String senderNickname) {
        this.senderNickname = senderNickname;
    }
}